// 动态引进方法
const modulesFiles = (import.meta as any).globEager('./*.ts')
const modules: any = {}

Object.keys(modulesFiles).forEach((fileName) => {
  const name = fileName.replace(/\.\/|\.ts/g, '')
  modules[name] = modulesFiles[fileName]
})

Object.keys(modules.base).forEach((key) => {
  modules[key] = modules.base[key]
})

export default modules
